(function() {
    let myChart = echarts.init(document.querySelector('.box-m3'))
    let option = {
        title:{
            text:'分布'
        },
        series: [
          {
            type: 'pie',
            data: [
              {
                value: 250,
                name: '服饰'
              },
              {
                value: 150,
                name: '电器'
              },
              
              {
                value: 450,
                name: '美妆'
              },
              {
                value: 350,
                name: '生活用品'
              },
              {
                value: 500,
                name: '水果'
              }
            ],
            roseType: 'area'
          }
        ]
      };

    myChart.setOption(option)



    window.addEventListener('resize', () => {
        myChart.resize()
    })
})()